package main

import (
	"content-system/internal/api"
	"fmt"

	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()

	api.CmsRouters(r)

	r.GET("/ping", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"message": "ok",
		})
	})

	err := r.Run()
	if err != nil {
		fmt.Printf("gin run error: %v", err)
		return
	}
}